package org.istt.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * File entity. @author MyEclipse Persistence Tools
 */
@Entity(name = "fileCapLaiCCHN")
@Table(name = "TBL_FILE_CAP_LAI_CCHN", schema = "dbo", catalog = "onegate")
public class FileCapLaiCCHN extends BaseObject<Long> implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1392103101254166475L;
    private String address ;
    private String level ;
    private String diploma ;
    private String certificate ; 
    private String contactName ;
    private String date_of_birth;
    private String email; 
    private Set<FileAttachment> fileAttachments = new HashSet<FileAttachment>(0); 
    private String fullname;
    private Long id;
    private String idcard ;
    private String idcard_date ;
    private String idcard_location ;
    private String nationality ;
    private String new_cer_content ; 
    private Date ngay_nop;
    private String old_cer_content ;
    private String old_cer_date;
    private String place_of_birth ;
    private String reason_renew_cer;
    private Boolean received;
    private String sex ;
    private String subject ;
    private String thu_tuc;
    private String fileCode;
    private String notify_message;
	public void setNotify_message(String notify_message) {
		this.notify_message = notify_message;
	}

	@Column(name="NOTIFY_MESSAGE")
	public String getNotify_message() {
		return notify_message;
	}
	
	public void setFileCode(String fileCode) {
		this.fileCode = fileCode;
	}

	@Column(name="FILE_CODE")
	public String getFileCode() {
		return fileCode;
	}
	@Override
	public boolean equals(Object o) {
		
		return false;
	}

	@Column(name="ADDRESS")
	public String getAddress() {
		return address;
	}

	@Column(name="CERTIFICATE")
	public String getCertificate() {
		return certificate;
	}

	@Column(name="CONTACT_NAME")
	public String getContactName() {
		return contactName;
	}
    
	@Column(name="DATE_OF_BIRTH")
	public String getDate_of_birth() {
		return date_of_birth;
	}

	@Column(name="EMAIL")
	public String getEmail() {
		return email;
	}

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "fileCapLaiCCHN")
	public Set<FileAttachment> getFileAttachments() {
		return fileAttachments;
	}

	@Column(name="FULLNAME")
	public String getFullname() {
		return fullname;
	}
	@Id @GeneratedValue(strategy=IDENTITY)
    @Column(name="ID", unique = true, nullable=false)
	public Long getId() {
		return id;
	}

	@Column(name="IDCARD")
	public String getIdcard() {
		return idcard;
	}
	@Column(name="IDCARD_DATE")
	public String getIdcard_date() {
		return idcard_date;
	}

	@Column(name="IDCARD_LOCATION")
	public String getIdcard_location() {
		return idcard_location;
	}
	@Column(name="NATIONLITY")
	public String getNationality() {
		return nationality;
	}

	@Column(name="NEW_CER_CONTENT")
	public String getNew_cer_content() {
		return new_cer_content;
	}
	@Column(name="NGAY_NOP")
	public Date getNgay_nop() {
		return ngay_nop;
	}

	@Column(name="OLD_CER_CONTENT")
	public String getOld_cer_content() {
		return old_cer_content;
	}

	@Column(name="OLD_CER_DATE")
	public String getOld_cer_date() {
		return old_cer_date;
	}
	@Column(name="PLACE_OF_BIRTH")
	public String getPlace_of_birth() {
		return place_of_birth;
	}

	@Column(name="REASON_RENEW_CER")
	public String getReason_renew_cer() {
		return reason_renew_cer;
	}
	@Column(name="TIEP_NHAN")
	public Boolean getReceived() {
		return received;
	}

	@Column(name="SEX")
	public String getSex() {
		return sex;
	}
	@Column(name="SUBJECT")
	public String getSubject() {
		return subject;
	}

	@Column(name="THU_TUC")
	public String getThu_tuc() {
		return thu_tuc;
	}
	@Override
	public int hashCode() {
		
		return 0;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
	public void setDate_of_birth(String date_of_birth) {
		this.date_of_birth = date_of_birth;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	public void setFileAttachments(Set<FileAttachment> fileAttachments) {
		this.fileAttachments = fileAttachments;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	public void setId(Long id) {
		this.id = id;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public void setIdcard_date(String idcard_date) {
		this.idcard_date = idcard_date;
	}

	public void setIdcard_location(String idcard_location) {
		this.idcard_location = idcard_location;
	}
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public void setNew_cer_content(String new_cer_content) {
		this.new_cer_content = new_cer_content;
	}

	public void setNgay_nop(Date ngay_nop) {
		this.ngay_nop = ngay_nop;
	}


	public void setOld_cer_content(String old_cer_content) {
		this.old_cer_content = old_cer_content;
	}
	public void setOld_cer_date(String old_cer_date) {
		this.old_cer_date = old_cer_date;
	}
	public void setPlace_of_birth(String place_of_birth) {
		this.place_of_birth = place_of_birth;
	}

	public void setReason_renew_cer(String reason_renew_cer) {
		this.reason_renew_cer = reason_renew_cer;
	}
	public void setReceived(Boolean received) {
		this.received = received;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setThu_tuc(String thu_tuc) {
		this.thu_tuc = thu_tuc;
	}
	@Override
	public String toString() {
		
		return null;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	@Column(name="EDUCATION")
	public String getLevel() {
		return level;
	}

	public void setDiploma(String diploma) {
		this.diploma = diploma;
	}
	
	/***
	 * Van bang da duoc cap
	 * @return
	 */
	@Column(name="DIPLOMA")
	public String getDiploma() {
		return diploma;
	}

	
}